package com.bjpowernode.services;

import com.bjpowernode.beans.NewsType;
import com.bjpowernode.exception.MyException;

import java.sql.SQLException;
import java.util.ArrayList;

public interface NewsTypeServices {
    ArrayList<NewsType> getAll() throws SQLException;
    NewsType get(int id) throws SQLException;
    void add(NewsType newsType) throws  MyException;
    void edit(NewsType newsType) throws SQLException, MyException;
    void del(int id) throws SQLException, MyException;
}
